package com.cxh.mchat.bussiness.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cxh.mchat.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxh
 * @since 2021-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_message")
public class Message extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 备注
     */
    private String remark;

    /**
     * 发送人
     */
    private String sendUserNo;

    /**
     * 接收人（单聊是用户，群聊时群ID）
     */
    private String receivedUserNo;

    /**
     * 消息类型
     */
    private String type;

    /**
     * 消息文字
     */
    private String text;

    /**
     * 消息url
     */
    private String url;
}
